<!--
 * @Author: liuyonghu
 * @Date: 2021-11-12 17:23:49
 * @LastEditTime: 2024-11-22 09:48:16
 * @LastEditors: liuyonghu liuyonghu
 * @Description: 
 * @FilePath: /demos/syntax/iframe.html
-->


<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>iframe</title>
</head>

<body>
    <p> this is iframe</p>

    <script>
        import("./html-content.js").then((result) => {
            console.log(result.default);
            const iframe = document.querySelector("iframe");
            iframe.srcdoc = result.default;
            // const blobStr = new Blob([result.default], { type: "text/html" });
            // iframe.src = URL.createObjectURL(blobStr);
        }).catch((err) => {

        });

    </script>
    <iframe src="" frameborder="0"></iframe>
    <!-- <div style="height: 1000px;background-color: red;"></div>
    <iframe src="./1.html" frameborder="0"></iframe> -->
</body>

</html>